package com.train.order.controller;

import com.train.order.feign.SentinelOpenFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping(path = {"/sentinel"})
public class SentinelController {
    @Autowired
    SentinelOpenFeign sentinelOpenFeign;
    @GetMapping
    public Map testD(@RequestParam("p1") String p1){
        return sentinelOpenFeign.testD(p1);
    }
}
